package com.itheima.pojo;

import com.itheima.dao.UserService;

import java.util.Properties;

public class User implements UserService {
    private String name;
    private Integer age;
    private Student student;
    private String[] addresses;
    private Properties propes;
    public void setPropes(Properties propes) {
        this.propes = propes;
    }
    public void setAddresses(String[] addresses) {
        this.addresses = addresses;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public User() {

    }

    public void setName(String name) {
        this.name = name;
        System.out.println("setName");
    }

    public void setAge(Integer age) {
        this.age = age;
        System.out.println("setAge");
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", student=" + student +
                '}';
    }



    public void add() {
        System.out.println();

    }

    public String getName(String data) {
        return null;
    }
}
